#pragma once
#include<stdio.h>
#include<assert.h>
#include<stdbool.h>
#include<stdlib.h>

typedef int LTdata;

typedef struct LTeam {
	struct LTeam* next;
	LTdata data;
}LTeam;

typedef struct Queue {
	LTeam* head;
	LTeam* tail;
	int size;
}Que;

typedef struct MYstack {
	Que q1;
	Que q2;
}mystack;

void initial(Que* qu);

void destory(Que* qu);

void pushlteam(Que* qu, LTdata x);

void poplteam(Que* qu);

LTdata gettail(Que* qu);

LTdata getfront(Que* qu);

bool judgeempty(Que* qu);

int LTeamsize(Que* qu);

void mysdestory(mystack** q);

bool emptymys(mystack* q);

LTdata gettop(mystack* q);

LTdata popmystack(mystack** q);

void pushmystack(mystack** q, LTdata x);

mystack* initialts();
